package utils;

import bean.ViewCotizacion;
import com.thoughtworks.xstream.XStream;

public class CotizacionConverter {
	private static XStream xs = new XStream();
	
	
	
	public static ViewCotizacion fromXmlToObject(String xml){
		return (ViewCotizacion)xs.fromXML(xml);
	}
	
	public static String fromObjectToXML(ViewCotizacion cotizacion){
		return xs.toXML(cotizacion);
	}
	
}

